home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / magneto.swf / scripts / frame_5 / PlaceObject2_151_83 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-07-07  |  772 b   |  40 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.pts < 0)
  3.    {
  4.       _root.pts = 0;
  5.    }
  6.    if(ol == 1)
  7.    {
  8.       _root.dsp.nextFrame();
  9.       _root.pts = _root.ptse;
  10.       if(_root.dsp._currentframe > 6)
  11.       {
  12.          _root.lvl.removeMovieClip();
  13.          _root.nextFrame();
  14.       }
  15.    }
  16.    if(nl == 1 or ol == 1)
  17.    {
  18.       if(ol == 0)
  19.       {
  20.          e += 1;
  21.          if(e > 27)
  22.          {
  23.             _root.lvl.removeMovieClip();
  24.             _root.gd = 1;
  25.             _root.nextFrame();
  26.          }
  27.       }
  28.       nl = 0;
  29.       ol = 0;
  30.       _root.pts += 100 * e;
  31.       _root.attachMovie("lvl" + e,"lvl",1);
  32.       _root.lvl.ld.lnr = "level " + e;
  33.    }
  34.    if(_root.el == 1)
  35.    {
  36.       _root.dsp.gotoAndStop(1);
  37.       _root.pts = 0;
  38.    }
  39. }
  40.